package com.monkey.demolist.tree.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Description:
 * Author: Archur
 * Date: 2017-10-20
 * Time: 11:50
 */

@Target(ElementType.FIELD) //该注解是加在属性上
@Retention(RetentionPolicy.RUNTIME) //注解在运行时可见
public @interface TreeNodeId {

    /**
     * 写上这个就在添加此注解的时候就必须加上类
     *
     * @TreeNodeId(type = Integer.class)
     * private int id;
     */
    Class type();
}
